/* 
 * File:   main.cpp
 * Author: flai0014
 *
 * Created on March 28, 2012, 11:45 AM
 */

#include <cstdlib>
#include "Enviroment.h"
#include "Agent.h"
#include <stdio.h>

using namespace std;

/* Could not get this to run was running into a problem with my agentcheckin
 * function in my EnvCell would send seg faults and I do not know why because 
 * I was initializing the count in the constructor * 
 */
int main(int argc, char** argv) {
    Agent *agents[MAX_AGENTS];
    Enviroment* currentEnviroment = new Enviroment();
    int cmd;
    bool toggle = false;
    for(int h = 0; h < MAX_AGENTS; h++){
        agents[h] = new Agent(h);
        agents[h]->start();
    }
    currentEnviroment->test();
    for(int k = 0; k < MAX_AGENTS; k++){
        agents[k]->stop();
    }
    for(int i = 0; i < MAX_AGENTS; i++){
        delete agents[i];
    }
    delete currentEnviroment;
}


